package com.itheima.day18.xml;

import org.dom4j.Document;
import org.dom4j.DocumentException;
import org.dom4j.Element;
import org.dom4j.io.SAXReader;

import java.io.File;
import java.util.List;

public class XmlParseDemo1 {
    public static void main(String[] args) throws DocumentException {
        SAXReader sax=new SAXReader();
        Document document = sax.read(new File("day 18XML&DTD&schma&,枚举类型\\xml\\stu.xml"));
        Element rootElement = document.getRootElement();
        List<Element> elements = rootElement.elements();

        for (Element element : elements) {

        }


    }
}
